/*
 * @Author: WuShuang
 * @Date: 2024-04-17
 *
 *车辆列表
 */

import { createAPI } from '@/utils/request'

// // 获取车辆列表数据
// export const getCarListAPI = data => createAPI(`/truck/page`, 'get', data)
// // 统计车辆数据
// export const statsCarListAPI = data => createAPI(`/count`, 'get', data)
// // 统计车辆数据
// export const newCarAPI = data => createAPI(`/truck`, 'post', data)

// 获取车辆分页列表
export const getVehicle = data => createAPI('/truck/page', 'get', data)

// 获取车辆类型信息列表
export const getCarModelsInfo = data => createAPI('/truckType/simple', 'get')

// 统计车辆
export const getCountCar = data => createAPI('/count', 'get', data)

// 添加车辆
export const addVehicle = data => createAPI('/truck', 'post', data)

// 获取司机列表
export const getDriverList = data => createAPI('/unBindingDrivers/', 'get')

// 停用车辆
export const disableVehicle = data => createAPI(`/disable/${data}`, 'put')

// 启用车辆
export const enableVehicle = data => createAPI(`/enable/${data}`, 'put')

